SlkStore.FinishLearnerAssignment Method

Finishes the learner assignment.

Parent Type: SlkStore

Namespace: Microsoft.SharePointLearningKit

Assembly: Microsoft.SharePointLearningKit.dll

Syntax
C#

public void FinishLearnerAssignment (
LearnerAssignmentItemIdentifier learnerAssignmentId

)

Parameters

learnerAssignmentId

The ID of the learner assignment to finish.

Exceptions
Exception type Condition
SafeToDisplayException

An error occurred that can be displayed to a browser user. Possible cause: the learner assignment isn't in the correct state, it is an elearning assignment, or the user isn't an instructor or learner on the assignment.

Remarks

This method should be called after a session is completed in order to update the information in the LearnerAssignment, auto-return the LearnerAssignment if necessary, and other related operations.

Security:  Fails if the current user doesn't have the right to finish the learner assignment.